/*******************************************************************************
 * Copyright (c) 2011-11-10 @author <a href="mailto:iffiff1@hotmail.com">Tyler Chen</a>.
 * All rights reserved.
 *
 * Contributors:
 *     <a href="mailto:iffiff1@hotmail.com">Tyler Chen</a> - initial API and implementation
 ******************************************************************************/
package com.redhat.auth.ejb;

import com.redhat.auth.ejb.vo.SecurityStrategyVO;

/**
 * @author <a href="mailto:iffiff1@hotmail.com">Tyler Chen</a> 
 * @since 2011-11-10
 */
public interface SecurityStrategyApplication {

	/**
	 * 删除一个安全策略
	 * @param id
	 * @author <a href="mailto:iffiff1@hotmail.com">Tyler Chen</a> 
	 * @since 2011-11-15
	 */
	void deleteSecurityStrategy(Long id);

	/**
	 * 新增/保存一个安全策略
	 * @param strategy
	 * @return
	 * @author <a href="mailto:iffiff1@hotmail.com">Tyler Chen</a> 
	 * @since 2011-11-15
	 */
	SecurityStrategyVO saveSecurityStrategy(SecurityStrategyVO strategy);

	/**
	 * 获得所有的安全策略
	 * @return
	 * @author <a href="mailto:iffiff1@hotmail.com">Tyler Chen</a> 
	 * @since 2011-11-15
	 */
	SecurityStrategyVO loadSecurityStrategy();
}
